Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEP PHP Support in CMS5 #476

Merged
merged 3 commits into from
Jan 17, 2023

Conversation

sabina-talipova
Copy link
Contributor

Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some failing unit tests

Copy link

@maxime-rainville maxime-rainville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require needs to be updated.

@@ -34,6 +34,10 @@ class SecurityAdminExtension extends Extension
'reset',
];

private static $url_handlers = [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We change the SecurityAdmin to be a plain ModelAdmin. A side affect of that seems to be that we can create REST endpoints directly on this controller anymore.

MFA has a "reset" endpoint on Security used to trigger a force reset of a Member MFA settings.

I change that endpoint to be users/reset/$ID instead of reset/$ID.

} catch (Exception $e) {
$this->logger->info('WARNING: Account Reset Email failed to send: ' . $e->getMessage());
return false;
}

return true;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Email::send() now return void. We'll consider the Email sending a success if no exceptions are thrown.

Copy link

@maxime-rainville maxime-rainville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bits Sabina did are fine. I ended up reworking some of the AJAX calls. She'll review those.

@emteknetnz emteknetnz merged commit 71f176d into silverstripe:5 Jan 17, 2023
@emteknetnz emteknetnz deleted the pulls/5/upgarde-cms5 branch January 17, 2023 22:24
@emteknetnz
Copy link
Member

Note - I found an issue with this post merge where registered methods aren't showing in SecurityAdmin - we'll deal with this post-beta - #479

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants